MailPoet\Form\DisplayFormInWPContent C

Total Complexity 109
Dependencies 11
Dependents 4
Total lines 408
Lines of code 253
Logical lines of code 176
Comment lines 54
Methods 23
Properties 11

Methods 23

Method Rating Maintainability Complexity Lines of code
shouldDisplayFormType()
C
43 27 42
getContentBellow()
A
45 7 41
displayFormInProductListPage()
S
63 8 9
shouldDisplay()
S
61 7 11
shouldDisplayFormOnPost()
S
59 6 13
maybeRenderFormsInFooter()
S
65 6 9
shouldDisplayFormOnTagArchive()
S
66 5 7
shouldDisplayFormOnCategoryArchive()
S
66 5 7
filterOneFormInEachDisplayType()
S
63 4 11
getContentWithFormMarkup()
S
63 4 11
shouldDisplayFormOnCategory()
S
69 4 6
shouldDisplayFormForWPUser()
S
65 4 9
shouldDisplayFormOnTag()
S
69 4 6
getFormMarkup()
S
62 3 11
isWooProductPageWithoutContent()
S
66 3 9
shouldDisplayFormOnHome()
S
63 3 10
getForms()
S
62 2 11
shouldDisplayFormOnFrontPage()
S
70 2 6
__construct()
S
64 1 10
saveNoForms()
S
80 1 3
wooProductListDisplay()
S
76 1 4
contentDisplay()
S
76 1 4
wasDisplayTypeAlreadyRendered()
S
79 1 3